package com.yanqu.road.entity.activity.hsisland.enums;

public enum HsIslandImageIdEnum {
    IMAGE_DEFAULT(124017, "魂师装束-无功能"),
    IMAGE_AUTO(124018, "蓝银真身-解锁打理"),
    IMAGE_ADD_SCORE(124019, "海神神装-加积分"),
    ;

    /**
     * 类型
     */
    private int type;

    /**
     * 名称
     */
    private String name;

    HsIslandImageIdEnum(int type, String name) {
        this.type = type;
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    /**
     * 判断形象ID是否正确
     * @param imageId
     * @return
     */
    public static boolean checkImageId(int imageId) {
        for (HsIslandImageIdEnum imageIdEnum : HsIslandImageIdEnum.values()) {
            if (imageIdEnum.getType() == imageId) {
                return true;
            }
        }
        return false;
    }
}
